


function Position_Base(a_x, a_y, a_w, a_h, a_dx, a_dy)
{
	Object_Attr.apply(this, arguments);
	// 坐标x y 长宽 w h
	this.x = a_x;
	this.y = a_y;
	this.w = a_w;
	this.h = a_h;
	this.dx = a_dx === undefined || a_dx === null ? null : a_dx;
	this.dy = a_dy === undefined || a_dy === null ? null : a_dy;
	this.dw = null;
	this.dh = null;
}
extend_usemid(Position_Base, Object_Attr);

/**
 * normal
 */
function Position_Normal(a_x, a_y, a_w, a_h, a_dx, a_dy)
{
	Position_Base.apply(this, arguments);
}
extend_usemid(Position_Normal, Position_Base);

Position_Normal.prototype.offsetPosition = function(dx, dy, w, h)
{
	var _p = new Position_Normal(this.x, this.y, w, h);
	_p.dx = dx;
	_p.dy = dy;
	return _p;
}



